<?php
	include ('site/public/header.php');
	include ('site/public/footer.php');
	$tplHome = new XTemplate('view/layout.htm');
	$c		 = _POST('c');
	$a		 = _POST('a');
	if($c){
		if($a)
			include('site/'.$c.'/'.$a.'.php');
		else
			include('site/'.$c.'.php');
	}else{
		include('site/product/list.php');
	}
	
	$tplHome->assign('baseUrl', $baseUrl);
	$tplHome->assign('content', $content);
	$tplHome->assign('header', $header);
	$tplHome->assign('footer', $footer);
	$tplHome->parse('LAYOUT');
	$tplHome->out('LAYOUT');